//
//  HJTeamInvitation.h
//  project
//
//  Created by hu on 2019/4/4.
//  Copyright © 2019 健健. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef NS_ENUM(NSUInteger, TeamInvitionType) {
    meetingTimeView = 1,
    meetingLocationView = 2,
    meetingPathView = 3,
    otherMationView = 4
};

@protocol HJTeamInvitationDelegate <NSObject>

@optional

/**
 见面时间 点击选择日期
 @param textField 选中的值
 */
-(void)meetingTimeWithTextField:(UITextField *_Nullable)textField timeLabel:(UILabel *_Nonnull)timeLabel;
/**
 见面地点 点击选择地点
 @param textField 选中的值
 */
-(void)meetingLocationWithTextField:(UITextField *_Nonnull)textField locationLabel:(UILabel *_Nonnull)locationLabel;
/**
 乘坐的交通方式 点击选择交通
 @param textField 选中的值
 */
-(void)meetingPathWithTextField:(UITextField *_Nonnull)textField;

@end
NS_ASSUME_NONNULL_BEGIN
@class HJSimpleModel;
@interface HJTeamInvitation : UIView

@property (nonatomic,assign) NSUInteger TeamInvitionType;

@property (weak, nonatomic) IBOutlet UIView *bgView;
@property (weak, nonatomic) IBOutlet UIView *timeView;
@property (weak, nonatomic) IBOutlet UIView *locationView;

@property (weak, nonatomic) IBOutlet UIView *meetingTimeView;
@property (weak, nonatomic) IBOutlet UITextField *meetingTime_TF;

/**
 见面地点 Y值默认为 70
 */
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *meetingLocationView_Top;
@property (weak, nonatomic) IBOutlet UIView *meetingLocationView;
@property (weak, nonatomic) IBOutlet UITextField *meetingLocation_TF;
@property (weak, nonatomic) IBOutlet UILabel *timeLabel;
@property (weak, nonatomic) IBOutlet UILabel *locationLabel;

/**
 融云组队数据模型
 */
@property (nonatomic, strong) HJSimpleModel *simpleModel;


@property (nonatomic,weak) id <HJTeamInvitationDelegate> delegate;

/**
 选择时间
 */
-(void)timeEditDidClicked;

/**
 选择地点
 */
-(void)locationEditDidClicked;
@end

NS_ASSUME_NONNULL_END
